package com.lwm.springcloud.service.impl;


import com.lwm.springcloud.entity.Payment;
import org.springframework.stereotype.Service;
import com.lwm.springcloud.dao.PaymentDAO;
import com.lwm.springcloud.service.PaymentService;

import javax.annotation.Resource;

/**
 * @author lwmzzz
 * @version 1.0
 * @date 2020/11/23 21:46
 * @description
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    PaymentDAO paymentDAO;

    @Override
    public int create(Payment payment) {
        return paymentDAO.create(payment);
    }


    @Override
    public Payment getPaymentNew(Long id) {


        return paymentDAO.getPaymentByIdNew(id);
    }
}
